package com.whminwei.edu.api.school.dto.fspn;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 职工列表
 *
 * @author wangy
 * @since 2024/4/19
 */
@Data
@NoArgsConstructor
public class StaffFspn {

    @JsonValue
    private List<StaffBo> staffList;

    @JsonCreator
    public StaffFspn(List<StaffBo> staffList) {
        this.staffList = staffList;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class StaffBo {
        private String staffId;

        private String staffName;

        private String staffNo;

        private String phone;

        private String staffStatus;

        private List<String> orgIdList;

        private String departmentId;

        /**
         * 出生年月
         */
        private String birthDate;

        public StaffBo(String staffId, String staffName, String staffNo, String phone, String staffStatus) {
            this.staffId = staffId;
            this.staffName = staffName;
            this.staffNo = staffNo;
            this.phone = phone;
            this.staffStatus = staffStatus;
        }
    }
}
